package day08.zuozuo;

import java.util.Scanner;

public class testStudent {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str=sc.next();
        String ss[]=str.split(",");

        Student jkk=new Student();
        jkk.setName(ss[0]);
        jkk.setAge(ss[1]);
        System.out.println(jkk.getAge());
        System.out.println(jkk.getName());


    }

}
